package com.koala.mylittlesecretary;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;

public class Settings {
	Editor eGet;
	SharedPreferences sharedPrefs;
	public boolean bFirstStart;
	public boolean bActive;

	public Settings() {
		sharedPrefs = MainActivity.mainAct.getSharedPreferences("MLS", 0);
		eGet = sharedPrefs.edit();
		bFirstStart = sharedPrefs.getBoolean("MLS_bFirstStart", true);
		bActive = sharedPrefs.getBoolean("MLS_bActive", false);
	}

	public void savePrefs() {
		bFirstStart = false;
		eGet.putBoolean("MLS_bFirstStart", bFirstStart);
		eGet.putBoolean("MLS_bActive", bActive);
		eGet.commit();
		Log.v("MLS", "Saved prefs");
	}
}
